<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // var a = {
        //     name: 'zhangsan',
        //     age: '19'
        // }
        // var b = {};
        // for (const key in a) {
        //     b[key] = a[key]
        // }
        // Object.assign(b, a)
        // a.name = 'lisi'
        // console.log(a)
        // console.log(b)

        var c = [{
                name: "zhangsan",
                age: 19,
                checked: true
            },
            {
                name: "lisi",
                age: 20,
                checked: false
            }, {
                name: "wanwu",
                age: 55,
                checked: true
            },
        ]
        var d = [];
        for (var i = 0; i < c.length; i++) {
            d[i] = c[i];
        }
        d[1].name = 'ccccc'
        d[0].name = 'ddddd'
        console.log(c)
        console.log(d)
    </script>
</body>

</html>